#pragma once

#include "IFloatInterpolator.h"
#include "FloatKey.h"
#include <vector>

class TCBFloatInterpolator : public IFloatInterpolator
{
private:
	std::vector<FloatKey*> keys;

	void GetVectors(float time, float &normalizedTime, float &pt1, float &pt2, float &tn1, float &tn2);

public:
	void GetValue(float time, float &value);
	void AddKey(float time, float value);
};
